get

pure function get(index: integer): json

Get the element at the specified index of this JSON array.

json_array.get(index) is equivalent to json_array[index].

Since

0.14.16

Parameters

index

the array index

Throws

exception

if the specified index is out of bounds


pure function get(key: text): json

Get the member with the specified key in this JSON object.

json_object.get(key) is equivalent to json_object[key].

Since

0.14.16

Parameters

key

the object key

Throws

exception

if the specified key is not found in this object